package com.zwj.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 用户id
 * @TableName user_id
 */
@TableName(value ="user_id")
@Data
public class UserId implements Serializable {
    /**
     * 用户id
     */
    @TableId(type = IdType.AUTO)
    private Long userId;

    public UserId() {
    }

    public UserId(Integer code) {
        this.code = code;
    }

    @TableField("code")
    private Integer code;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}